From: Ian Jackson Date: Tue, 30 Oct 2012 18:12:11 +0000 (+0000) Subject: autoconf: add file missing from 26123:f6d5b3bf74a8 X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~7680 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=247e9c7da3e66807abd45b39473afad6bc00267e;p=xen.git autoconf: add file missing from 26123:f6d5b3bf74a8 This file was in 26123:f6d5b3bf74a8 as submitted but I failed to add it. Committed-by: Ian Jackson --- diff --git a/tools/m4/fetcher.m4 b/tools/m4/fetcher.m4 new file mode 100644 index 0000000000..86f33b3937 --- /dev/null +++ b/tools/m4/fetcher.m4 @@ -0,0 +1,14 @@ +AC_DEFUN([AX_CHECK_FETCHER], [ +AC_PATH_PROG([WGET],[wget], [no]) +AS_IF([test x"$WGET" != x"no"], [ + FETCHER="$WGET -c -O" +], [ + AC_PATH_PROG([FTP],[ftp], [no]) + AS_IF([test x"$FTP" != x"no"], [ + FETCHER="$FTP -o" + ], [ + AC_MSG_ERROR([cannot find wget or ftp]) + ]) +]) +AC_SUBST(FETCHER) +])